#ifndef _TIMER_PWM_H__
#define _TIMER_PWM_H__
#include "GPIO_Config.h"
#include "at32f413_gpio.h"
#include "at32f413_tmr.h"

#define MAX_Timer (uint16_t)(SystemCoreClock / 15000 - 1)

void tmr1_pwm_config(void);

void set_pwm_duty(uint8_t channel, float duty);
void motor_pwm_set(uint8_t motor_ch , float ch_pwm_set);

#endif